$(document).ready(function () {
    layui.use('form', function () {
        var form = layui.form;
        form.render();
    });
});

function addPosition() {

    var formJSON = $("#position-submit-form").serializeObject();

    // 添加部门岗位
    ajax(
        "/admin/position/addPosition", "POST",
        formJSON, true, true, true
    ).done(function () {
        loadingPage("/admin/position/position");;
    });

}